<?php

namespace apps\marriage\app\op\controller;

use apps\marriage\core\service\PlatformAccountBookService;
use think\Request;

class PlatformAccountBookController extends BaseMarriageOpController
{
    /**
     * @var PlatformAccountBookService
     */
    private $platformAccountBookService;

    protected function init()
    {
        parent::init();
        $this->platformAccountBookService = service('PlatformAccountBook', SERVICE_NAMESPACE);
    }

    public function lists(Request $request)
    {
        $pageSize = $request->param('page_size', 10, 'intval');
        $params = [];
        $res = $this->platformAccountBookService->pageListByParams($params, $pageSize);

        return $this->success($res);
    }
}